<?php
Route::group(['prefix' => 'system', 'namespace' => 'System', 'as' => 'system.'], function () {
    //清除缓存
    route::get('index', 'CacheController@index')->name('Cache.index');
    route::delete('destroy', 'CacheController@destroy')->name('Cache.destroy');

    // 系统设置
    Route::resource('config', 'ConfigController', ['only' =>
        ['index', 'update']
    ]);

    // 用户权限
    Route::patch('permission/sort_order', 'PermissionController@sort_order')->name('permission.sort_order');
    Route::resource('permission', 'PermissionController');
    Route::resource('user', 'UserController');
    Route::resource('role', 'RoleController');

});